package com.example.tutorialspringbootrabbitmq.mq;

import org.springframework.amqp.core.Message;
import org.springframework.amqp.rabbit.annotation.RabbitListener;

public class MqReceiver {

    @RabbitListener(queues = "springboot.topic.queue")
    public void onMessage(Message message) {
        System.out.println("TopicConsumer接收到的消息--> " + message);
    }

}
